home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 Christmas / macformat-045.iso / Shareware Plus / HyperCard / get-set-mod-date-15 / Get⁄SetModDate 1.5 / Get_SetModDate 1.5 / cards.xml < prev    next >
Encoding:
Text File  |  1996-09-05  |  4.5 KB  |  117 lines

  1. card_2941.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2941</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_2158.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2672</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3235.css" />
  13.     <part>
  14.         <id>3</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>1</left>
  25.             <top>82</top>
  26.             <right>511</right>
  27.             <bottom>309</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <true /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Monaco</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>10</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>2</left>
  57.             <top>54</top>
  58.             <right>114</right>
  59.             <bottom>76</bottom>
  60.         </rect>
  61.         <style>rectangle</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>GetModDate</name>
  74.         <script>on mouseUp
  75. answer file "Choose a file to examine:"
  76. if it = "" then exit mouseup
  77. put GetModDate(it) into modDate
  78. convert modDate to long date and time
  79. answer modDate
  80. end mouseUp</script>
  81.     </part>
  82.     <part>
  83.         <id>11</id>
  84.         <type>button</type>
  85.         <visible> <true /> </visible>
  86.         <reserved5> 0 </reserved5>
  87.         <reserved4> 0 </reserved4>
  88.         <reserved3> 0 </reserved3>
  89.         <reserved2> 0 </reserved2>
  90.         <reserved1> 0 </reserved1>
  91.         <enabled> <true /> </enabled>
  92.         <rect>
  93.             <left>116</left>
  94.             <top>54</top>
  95.             <right>228</right>
  96.             <bottom>76</bottom>
  97.         </rect>
  98.         <style>rectangle</style>
  99.         <showName> <true /> </showName>
  100.         <highlight> <false /> </highlight>
  101.         <autoHighlight> <true /> </autoHighlight>
  102.         <sharedHighlight> <true /> </sharedHighlight>
  103.         <family>0</family>
  104.         <titleWidth>0</titleWidth>
  105.         <icon>0</icon>
  106.         <textAlign>center</textAlign>
  107.         <font>Chicago</font>
  108.         <textSize>12</textSize>
  109.         <textStyle>plain</textStyle>
  110.         <name>SetModDate</name>
  111.         <script>on mouseUp
  112. put the seconds into newModDate
  113. put newmoddate into moddate
  114. convert moddate to long date and time
  115. answer file "Choose a file to set Modification Date:"
  116. if it = "" then exit mouseup
  117. setModDate it,newModDate
  118. answer "Modification date set to" && moddate & "."
  119. end mouseUp</script>
  120.     </part>
  121.     <content>
  122.         <layer>card</layer>
  123.         <id>3</id>
  124.         <text>GetModDate takes one parameter, the pathname of the file to examine. It returns the time in seconds which can be converted to a date. SetModDate takes two parameters, the pathname of the file to work on, and the datetime in seconds.
  125.  
  126. Click on and/or examine the scripts of the buttons above to see how they work!
  127.  
  128. This external is free for purely personal use. A license fee of $10.00 is required if you use this external in any ‚Äúin-house‚Äù corporate, shareware or freeware products. The license fee for unlimited commercial use in a SINGLE ‚Äúfor sale‚Äù product is $25.00. The license fee for unlimited commercial use with MULTIPLE products is $100.00.
  129.  
  130. Permission is hereby granted to all groups who distribute demo software, either for profit (such as EduCorp) or not for profit (such as a Macintosh Users Group), to include this file in their collection. My goal is to get as much exposure for my products as possible, and I believe that these groups offer an invaluable service to shareware publishers like myself.
  131.  
  132. If you have questions or comments we can be reached through the following:
  133.  
  134. Iverson Software Co.          507.625.7355
  135. 522 Record St.                j5rson@prairie.lakes.com
  136. Mankato MN  56001-2546        http://prairie.lakes.com/~j5rson/
  137. </text>
  138.     </content>
  139.     <name></name>
  140.     <script></script>
  141. </card>
  142.  
  143.  
  144.